<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>cost</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <link rel="stylesheet" href="dot.css">

    <script src="../address/jquery.min.js"></script>
    <script src="../apply_need/js/rule.js"></script>
</head>
<body>
<div class="header">
    <a href=""><img src="../NeedToKnow/left.png" alt=""></a>
    <p>预约确认</p>
</div>
<!--内容组成-->
<div class="content">
	<p class="first">
		<span class='subject'>训练课程：</span>
		<span contenteditable="true" class="test"></span>
	</p>
	<p class="first">
		<span>接送时间:</span>
		<select name="" id="">
			<option value="">1</option>
			<option value="">2</option>
			<option value="">3</option>
			<option value="">4</option>
			<option value="">5</option>
			<option value="">6</option>
			<option value="">7</option>
		</select>
		<select name="" id="">
			<option value="">11</option>
			<option value="">22</option>
			<option value="">33</option>
		</select>
	</p>
	<p>
		<span>接送地址：</span>
		<input type="text" placeholder="请叫我花生奶糖" class="inpt">
	</p>
</div>
<div class="liuyan">
	<p>订单留言</p>
	<textarea name="" id="" cols="30" rows="10"4>

	</textarea>
	<p class="dui">
		<span>√</span>
		<span>我已阅读并同意《约教须知》</span>
	</p>
</div>
<div class="yhq">
	<span>使用学车券</span>
	<select name="" id="">
		<option value="">新生练车券：20元</option>
		<option value="">新生练车券：20元</option>
		<option value="">新生练车券：20元</option>
	</select>
	<p>
		<span>科二练习合计￥</span>
		<span style="color: orange">100</span>
	</p>
	<button class="tijiao">提交</button>
</div>








    <script>
        $(function(){

			var teacher_id=localStorage.teacher_id=teacher_id;
			var today=localStorage.today=today;
			 var tomorrow=localStorage.tomorrow=tomorrow;
			var after=localStorage.after=after;
			var subject=localStorage.subject=subject;
			var place=localStorage.place=place;
            alert(subject);
            $('.subject').html(subject);


        }    )
    document.addEventListener("plusready", function() {
        // 注册返回按键事件
        plus.key.addEventListener('backbutton', function() {
            window.history.back();
        }, false);
        //此处false代表不退出页面，如果为true回退到上一个一面
    });

	/*请求数据js*/
		$.ajax({
			url:"https://newapp.icandrive.cn/api/autograph.php",
			type:'post',
			dataType:'json',
			data:{token:token,content:content},
			success:function(data){
				if(data.status==250){
					layer.msg(data.msg);
					setInterval(function(){
						window.location,href="../login/log_in.html";
					},2000);
				}
				if(data.status==200){
					layer.msg(data.msg);
					setInterval(function(){
						window.location.href="../coach-I/coach-me.html";
					},2000);
				}
				if(data.status==400){
					layer.msg(data.msg);
				}
			},
			error:function(){
				 layer.msg('系统维护中',function(){
                                history.go(0)
                            },1000);
			}
		});
	});
		})



</script>
</body>
</html>
